<!--  -->
<template>
  <div class="sb-Top">
    <span>▣</span><span>{{ title }}</span>
    <p><span></span><span></span></p>
  </div>
</template>

<script>
export default {
  //import引入的组件需要注入到对象中才能使用
  name: "commonTitle",
  props: {
    title: {
      type: String,
      default: "标题",
    },
  },
  components: {},
  data() {
    //这里存放数据
    return {};
  },
  //监听属性 类似于data概念
  computed: {},
  //监控data中的数据变化
  watch: {},
  //方法集合
  methods: {},
  //生命周期 - 创建完成（可以访问当前this实例）
  created() {},
  //生命周期 - 挂载完成（可以访问DOM元素）
  mounted() {},
  beforeCreate() {}, //生命周期 - 创建之前
  beforeMount() {}, //生命周期 - 挂载之前
  beforeUpdate() {}, //生命周期 - 更新之前
  updated() {}, //生命周期 - 更新之后
  beforeDestroy() {}, //生命周期 - 销毁之前
  destroyed() {}, //生命周期 - 销毁完成
  activated() {}, //如果页面有keep-alive缓存功能，这个函数会触发
};
</script>
<style lang="scss" scoped>
//@import url(); 引入公共css类
.sb-Top {
  width: 100%;
  height: 45px;
  overflow: hidden;
  background: url("https://files.axshare.com/gsc/E0EL5C/fd/21/59/fd2159f2f7f94050a3ed7c0fb1c4079a/images/%E7%83%AD%E6%B3%B5%E7%B3%BB%E7%BB%9F/u67.svg?pageId=1faa738d-2fb6-4c2f-b893-e9f972d8c348")
    no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  padding: 0 15px;
  box-sizing: border-box;
  position: relative;
  p {
    height: 1px;
    background-color: #415f81;
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    span {
      height: 100%;
      width: 20px;
      background-color: #95c6ea;
    }
  }
  span {
    color: #a5d8fc;
    font-size: 20px;
    font-weight: bold;
  }
  span:first-child {
    margin-right: 10px;
  }
}
</style>
